package com.combetter.changxing.http.dialog;

import android.app.Activity;
import android.content.Intent;

import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;

import com.combetter.changxing.R;
import com.jakewharton.rxbinding2.view.RxView;


/**
 * 设备重命名dialog
 * <p>
 * Created by 深圳唐龙飞讯科技有限公司 on 2018/7/18.
 */
public class FacilityRechristenDialog extends DialogFragment {
    private String facilityName;
    private String identifierId;
    private int mid;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View inflate = inflater.inflate( R.layout.dialog_edit, container, false);
        getDialog().requestWindowFeature(Window.FEATURE_NO_TITLE);
        getDialog().getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
        initVies();
        setListener();
        return inflate;
    }

    @Override
    public void onResume() {
        super.onResume();
//        int width = ResUtils.getDimens(getContext(), R.dimen.DIMEN_450PX);
//        int height = ResUtils.getDimens(getContext(), R.dimen.DIMEN_250PX);
//        getDialog().getWindow().setLayout(width, height);
    }


    /**
     * 初始化控件
     */
    private void initVies() {
        facilityName = getArguments().getString("facilityName");
        identifierId = getArguments().getString("identifierId");
        mid = getArguments().getInt("mid");
    }

    /**
     * 点击事件
     */
    private void setListener() {

    }
}
